package compositeExpression_Factb;

import visitor.Visitor;
import compositeExpression.Expr;
import compositeExpression.Expression;
import compositeExpression.Factb;
import exceptions.IllegalContextException;

public class FactbExpr extends Factb {
	
	protected Expr left;
    protected Expr right;

	@Override
	public void toAssess(String p) throws IllegalContextException {
		left.toAssess(p);
		right.toAssess(p);
	}

	
	
	public Expr getleft() {

        return left;
    }// getLeft

    public Expr getRight() {

        return right;
    }// getRight



    @Override
    public void accept(Visitor v) {
    	System.out.println("FACTBEXPR OMG");
    }


	@Override
	public void add(Expression termb) {
		throw new IllegalStateException("Operazione non valida");		
	}

}
